home *** CD-ROM | disk | FTP | other *** search
-
-
-
- UUUUSSSSCCCCPPPPSSSSEEEEMMMMAAAA((((3333PPPP)))) UUUUSSSSCCCCPPPPSSSSEEEEMMMMAAAA((((3333PPPP))))
-
-
-
- NNNNAAAAMMMMEEEE
- uscpsema - conditionally acquires a semaphore
-
- CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<uuuulllloooocccckkkkssss....hhhh>>>>
-
- iiiinnnntttt uuuussssccccppppsssseeeemmmmaaaa ((((uuuusssseeeemmmmaaaa____tttt ****sssseeeemmmmaaaa))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _u_s_c_p_s_e_m_a attempts to acquire the semaphore specified by _s_e_m_a. If the
- semaphore is not available (its count is less than zero), _u_s_c_p_s_e_m_a
- returns immediately with an indication that the semaphore is not
- available.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- usinitsema(3P), usnewsema(3P), uspsema(3P), ustestsema(3P), usvsema(3P).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- _u_s_c_p_s_e_m_a returns a 0 if the semaphore is not acquired and 1 if the
- semaphore is acquired. _u_s_c_p_s_e_m_a can only return an error (-1) if the
- internal semaphore data structure is corrupted.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-